package com.xcjh.smartchat.ui.setting

import android.os.Bundle
import androidx.fragment.app.activityViewModels
import com.xcjh.base_lib.base.BaseViewModel
import com.xcjh.smartchat.base.BaseFragment
import com.xcjh.smartchat.databinding.ChatFragmentLoginBinding
import com.xcjh.smartchat.ui.login.LoginVM

/**
 * 登录
 */
class SettingFragment(private var mStatus: Int) :
    BaseFragment<LoginVM, ChatFragmentLoginBinding>() {
    private val model: LoginVM by activityViewModels()


    companion object {
        ////
        fun newInstance(status: Int) = SettingFragment(status)
    }

    override fun initView(savedInstanceState: Bundle?) {

        model.getRoleArticle()
      //  mViewBind.ttt.text = "ssssssssss============sssssss"

    }

    override fun createObserver() {
        if (mStatus == 0) {//物品
            model.dataArticle.observe(this) {

            }
        } else {//消耗品
            model.dataConsume.observe(this) {

            }
        }
    }


}